home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / gfx / conv / jpegV5Asrc.lha / gcc / makefile.gcc.020881 < prev    next >
Makefile  |  1995-01-03  |  10KB  |  184 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is suitable for Unix-like systems with ANSI-capable compilers.
  4. # If you have a non-ANSI compiler, makefile.unix is a better starting point.
  5.  
  6. # Read installation instructions before saying "make" !!
  7.  
  8. # created 25-Nov-1994 by Günther Röhrich for gcc on the Amiga running Amiga-OS
  9. # (Guenther@studbox.uni-stuttgart.de)
  10.  
  11. # modified 3-Jan-1995: LDFLAGS are now set to use 020/881 libs (if available)
  12.  
  13. # The name of your C compiler:
  14. CC= gcc
  15.  
  16. # You may need to adjust these cc options:
  17. CFLAGS=  -m68020 -m68881 -O2
  18. # Generally, we recommend defining any configuration symbols in jconfig.h,
  19. # NOT via -D switches here.
  20.  
  21. # Link-time cc options:
  22. LDFLAGS= -m68020 -m68881 -O2
  23.  
  24. # To link any special libraries, add the necessary -l commands here.
  25. LDLIBS= 
  26.  
  27. # Put here the object file name for the correct system-dependent memory
  28. # manager file.  For Unix this is usually jmemnobs.o, but you may want
  29. # to use jmemansi.o or jmemname.o if you have limited swap space.
  30. SYSDEPMEM= jmemname.o
  31.  
  32. # miscellaneous OS-dependent stuff
  33. # linker
  34. LN= $(CC)
  35. # file deletion command
  36. RM= rm -f
  37. # library (.a) file creation command
  38. AR= ar rc
  39. # second step in .a creation (use "touch" if not needed)
  40. AR2= ranlib
  41.  
  42. # End of configurable options.
  43.  
  44.  
  45. # source files: JPEG library proper
  46. LIBSOURCES= jcapi.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \
  47.         jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \
  48.         jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \
  49.         jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \
  50.         jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \
  51.         jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \
  52.         jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c
  53. # source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom
  54. APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \
  55.         rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \
  56.         wrjpgcom.c
  57. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  58. # files included by source files
  59. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  60.         jpeglib.h jversion.h cdjpeg.h cderror.h
  61. # documentation, test, and support files
  62. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \
  63.         example.c libjpeg.doc structure.doc coderules.doc filelist.doc \
  64.         change.log
  65. MKFILES= configure makefile.auto makefile.ansi makefile.unix makefile.manx \
  66.         makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \
  67.         makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt
  68. CONFIGFILES= jconfig.auto jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  69.         jconfig.mc6 jconfig.dj jconfig.vms
  70. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  71. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  72. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  73.         $(OTHERFILES) $(TESTFILES)
  74. # library object files common to compression and decompression
  75. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  76. # compression library object files
  77. CLIBOBJECTS= jcapi.o jcparam.o jdatadst.o jcmaster.o jcmarker.o jcmainct.o \
  78.         jcprepct.o jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o \
  79.         jfdctfst.o jfdctflt.o jfdctint.o
  80. # decompression library object files
  81. DLIBOBJECTS= jdapi.o jdatasrc.o jdmaster.o jdmarker.o jdmainct.o jdcoefct.o \
  82.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  83.         jdhuff.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  84. # These objectfiles are included in libjpeg.a
  85. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  86. # object files for cjpeg and djpeg applications (excluding library files)
  87. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o
  88. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o
  89.  
  90.  
  91. all: libjpeg.a cjpeg djpeg rdjpgcom wrjpgcom
  92.  
  93. libjpeg.a: $(LIBOBJECTS)
  94.     $(RM) libjpeg.a
  95.     $(AR) libjpeg.a  $(LIBOBJECTS)
  96.     $(AR2) libjpeg.a
  97.  
  98. cjpeg: $(COBJECTS) libjpeg.a
  99.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  100.  
  101. djpeg: $(DOBJECTS) libjpeg.a
  102.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  103.  
  104. rdjpgcom: rdjpgcom.o
  105.     $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  106.  
  107. wrjpgcom: wrjpgcom.o
  108.     $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  109.  
  110. jconfig.h: jconfig.doc
  111.     echo You must prepare a system-dependent jconfig.h file.
  112.     echo Please read the installation directions in install.doc.
  113.     exit 1
  114.  
  115. clean:
  116.     $(RM) *.o cjpeg djpeg libjpeg.a rdjpgcom wrjpgcom core testout.*
  117.  
  118. test: cjpeg djpeg
  119.     $(RM) testout.ppm testout.gif testout.jpg
  120.     ./djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  121.     ./djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  122.     ./cjpeg -dct int -outfile testout.jpg  testimg.ppm
  123.     cmp testimg.ppm testout.ppm
  124.     cmp testimg.gif testout.gif
  125.     cmp testimg.jpg testout.jpg
  126.  
  127.  
  128. jcapi.o : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  129. jccoefct.o : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  130. jccolor.o : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  131. jcdctmgr.o : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  132. jchuff.o : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  133. jcmainct.o : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  134. jcmarker.o : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  135. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  136. jcomapi.o : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  137. jcparam.o : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  138. jcprepct.o : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  139. jcsample.o : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  140. jdapi.o : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  141. jdatasrc.o : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  142. jdatadst.o : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  143. jdcoefct.o : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  144. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  145. jddctmgr.o : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  146. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  147. jdmainct.o : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jdmarker.o : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  149. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jdpostct.o : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jdsample.o : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jerror.o : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  153. jutils.o : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  154. jfdctfst.o : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  155. jfdctflt.o : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  156. jfdctint.o : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  157. jidctfst.o : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  158. jidctflt.o : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  159. jidctint.o : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  160. jidctred.o : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  161. jquant1.o : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jquant2.o : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jdmerge.o : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  165. jmemansi.o : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  166. jmemname.o : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  167. jmemnobs.o : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  168. jmemdos.o : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  169. cjpeg.o : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  170. djpeg.o : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  171. rdcolmap.o : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  172. rdppm.o : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  173. wrppm.o : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  174. rdgif.o : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  175. wrgif.o : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  176. rdtarga.o : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  177. wrtarga.o : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  178. rdbmp.o : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  179. wrbmp.o : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  180. rdrle.o : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  181. wrrle.o : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  182. rdjpgcom.o : rdjpgcom.c jinclude.h jconfig.h
  183. wrjpgcom.o : wrjpgcom.c jinclude.h jconfig.h
  184.